package com.xyz.frame.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xyz.frame.bean.model.GuestRecommendEntity;
import com.xyz.frame.bean.model.User;
import com.xyz.frame.dao.GuestRecommendMapper;
import com.xyz.frame.service.GuestRecommendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("guestRecommendService")
public class GuestRecommendServiceImpl extends ServiceImpl<GuestRecommendMapper, GuestRecommendEntity> implements GuestRecommendService {


    @Autowired
    private GuestRecommendMapper guestRecommendDao;

    @Override
    public User getRecommendGuest(Map<String, Object> params) {
        return guestRecommendDao.getRecommendGuest(params);
    }

    @Override
    public List<Integer> getExistGuestUidList(String uid) {
        return guestRecommendDao.getExistGuestUidList(uid);
    }

    @Override
    public List<User> getHistoryRecommend(String uid) {
        return guestRecommendDao.getHistoryRecommend(uid);
    }


}